#include <stdio.h>
#include <time.h>
/*
 *
 int main(){
	int a, b, c, d, e, f, i = 1;
	srand(time(0));
	for (i = 1; i < 5; i++){
		a = 1 + random() % 49;
		b = 1 + random() % 49;
		c = 1 + random() % 49;
		d = 1 + random() % 49;
		e = 1 + random() % 49;
		f = 1 + random() % 49;
		if (a != b && a != c && a != d && a != e && a != f){
			printf("%d", a);
		} else if {
			a = 1 + random() % 49;
		} else if (b != c && b != d && b != e &&

	}
	return 0;
}

*/

int main(){
	const int maxint = 6;
	int x, a, b, c, d, e, f, i;
	a = 50;
	b = 50;
	c = 50;
	d = 50;
	e = 50;
	f = 50;
	srand(time(0));
	for (i = 1; i <= maxint; i++){
		x = 1 + random() % 49;
		if((x != a) && (x != b) && (x != c) && (x != d) && (x != e)){
			switch (i){
				case 1:
					a = x;
					break;
				case 2:
					b = x;
					break;
				case 3:
					c = x;
					break;
				case 4:
					d = x;
					break;
				case 5:
					e = x;
					break;
				case 6:
					f = x;
					break;
				}
		} 
		else {
			i--;
		}
	}
	printf("Lottery numbers are: %i, %i, %i, %i, %i, %i\n",a, b, c, d, e, f);
}


